package com.wh.connection_pool;

import java.sql.Connection;
import java.sql.SQLException;

public interface ConnectionPool {

	//获得连接
	public Connection getConnection();
	
	//获得当前的连接
	public Connection getCurrentConnection();
	
	//回收连接
	public void releaseConn(Connection connection) throws SQLException;
	
	//销毁清空
	public void destory();
	
	//连接池活动状态
	public boolean isActive();
	
	//定时器，检查连接池
	public void checkPool();
}
